package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.PaymentMethodDao;
import com.ericom.model.PaymentMethod;
@Repository("paymentMethodDao")
public class PaymentMethodDaoHibernate extends GenericDaoHibernate<PaymentMethod, Long>
		implements PaymentMethodDao {

	public PaymentMethodDaoHibernate(){
		super(PaymentMethod.class);
	}
	public List<PaymentMethod> findByName(String name) {
		
		return this.getHibernateTemplate().find("from PaymentMethod where name=?",name);
	}

}
